package demo01;

public class hw13 {
    public static void main(String[] args) {
    	double num1 = 0;
    	double num2 = 0;
    	double answer  = 0;
        for(double i = 0; i <= 100000; i++)
        {
        	num1 = i + 100;
        	num2 = i + 100 + 168;
        	double x = Math.sqrt(num1);
        	double y = Math.sqrt(num2);
        	if(x * x == num1 && y * y == num2 && num1 % x == 0 && num2 % y == 0)
        	{
        		answer = num1 - 100;
        		System.out.println(answer);
        	}
        	else
        	{
        	}
        }
    }
}
